package com.inventive.jmscache.server;

/**
 * Created by IntelliJ IDEA.
 */
public interface DestinationsCache extends DestinationsMBean {

    void addQueue(String queue);
    void addTopic(String topic);

    /**
     * Throws an exception if the queue doesn't exist. Otherwise simply returns
     * @param name
     */
    void checkContainsQueue(String name);

    /**
     * Throws an exception if the topic doesn't exist. Otherwise simply returns
     * @param name
     */
    void checkContainsTopic(String name);
}
